<!DOCTYPE html>
<html lang="en" uku-application>
<head>
    <meta charset="utf-8">
    <title>U+ demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">

    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="../jslib/swiper/css/swiper.min.css">
    <link rel="stylesheet" href="../css/main.css">   
    <script src="../jslib/jquery/jquery-2.1.3.js"></script>
    <script src="../jslib/swiper/js/swiper.min.js"></script>
    <link rel="stylesheet" href="../jslib/jquery-mobile/jquery.mobile-1.4.5.min.css" />
    <script src="../jslib/jquery-mobile/jquery.mobile-1.4.5.min.js"></script>
    <script type="text/javascript" src="../jslib/jquery/jquery.url.js"></script>
    <script type="text/javascript" src="../jslib/ukulele/ukulele.js"></script>
</head>
<body uku-onpagecontainershow="myCtrl.showMainHandler()">
    <!-- Swiper -->
    <div data-role="page" id="welcome">
        <div role="main" class="ui-content" style="padding:0">
            <div id="indexContainer" class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide" uku-repeat="slider in myCtrl.sliders">
                        <img uku-src="slider.img"/>
                    </div>
                    <div class="swiper-slide">
                        <a href="#main">
                            <img src="../images/slider04.jpg"/>
                        </a>
                    </div>
                </div>
                <!-- Add Pagination -->
                <!--<div class="swiper-pagination"></div>-->
            </div>
        </div>
    </div>
    
    <div data-role="page" id="main">
        <div id="headerMain" data-role="header">
            <h1>U+</h1>
        </div>
        <div role="main" class="ui-content" style="padding:0">
            <div id="mainContainer" class="swiper-container">
                <div class="swiper-wrapper">
                    <div class='swiper-slide' uku-repeat="good in myCtrl.goods">
                        <a href="#detail" uku-onclick="good.drilldown()">
                            <img style="width:210px;height:370px" uku-src="good.image"/>
                        </a>
                    </div>
                </div>
                <div class="swiper-button-next"></div>
                <div class="swiper-button-prev"></div>
            </div>
        </div>
        <div id="footerMain" data-role="footer">
            <h4>Enjoy Ukulele</h4>
        </div>
    </div>
    
    <div data-role="page" id="detail">
        <div id="headerDetail" data-role="header">
            <h1>U+</h1>
            <!--<a data-rel="back">back</a>-->
        </div>
        <div role="main" class="ui-content" style="padding:0">
            <div id="detailContainer">
                <div style="text-align: center;">
                    <span>
                        <img uku-repeat="detail in myCtrl.selectedGood.detailImages" uku-src="detail.src" style="width:150px;padding:10px"/>
                    </span>
                </div>
                <p style="text-align: center;padding:20px">{{myCtrl.selectedGood.description}}
                </p>
            </div>
            
        </div>
        <div id="footerDetail" data-role="footer">
            <h4>Enjoy Ukulele</h4>
        </div>
    </div>
    <script src="../js/index.js"></script>
</body>
</html>